package HomeworkDay2;

import java.util.Random;

public class Homework4SixRandomNum {
	public static void main(String[] args){
		Random random=new Random();
		int j=0,tianjia=1;
		int [] arr=new int[6];
		while(true){
			int x=random.nextInt(33)+1;
			for(int i=0;i<arr.length;i++){
				if(x==arr[i]){
					tianjia=0;
				}
			}
			if(tianjia==1){
				arr[j]=x;
				j++;
			}
			if(j>=arr.length){
				break;
			}
		}
		System.out.print("||");
		for(int i=0;i < arr.length;i++){
			System.out.print(arr[i]);
			System.out.print("||");
		}
		
	}

}
